package com.yh.csx.bsf.flow.engine.state;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.yh.csx.bsf.flow.core.base.FlowException;
import lombok.val;

/**
 * @author: chejiangyi
 * @version: 2019-10-28 18:39
 **/
public class AutoNode extends BaseNode{
    @Override
    public String getName(){
        return this.modelNode.getTitle();
    }


    @Override
    public void flow(int flowid){
        try
        {
            logFlowDebug(flowid,"节点:"+this.modelNode.getTitle()+" 进入流转");
            beginScript(flowid);
            route(flowid,0);
        }catch (Exception e){
            throw filterException(flowid,e);
        }
    }
}